/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.goodsstore.entity;

import com.jeeplus.modules.zone.entity.Zone;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 商城商品Entity
 * @author lxj
 * @version 2020-11-09
 */
public class GoodsStore extends DataEntity<GoodsStore> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 商品名称
	private String mainImgs;		// 轮播图
	private Double price;		// 单价
	private String imgs;		// 大图
	private String goodsStatus;		// 商品状态
	private Double firstProfit;		// 一级返利
	private Double secondProfit;		// 二级返利
	private Zone zone;		// 分区id
	private String firstImg;

	private Double integral;  //所需积分

	private Double originalPrice;	//原价

	private Integer boughtPerson;	//购买人数

	private String goodsPosition; //地区

	private Integer stock;

	private Double profit;

	private Integer myStock;

	private String showPrice;	//时令商品价格显示标识   0：积分	1：金额

	public GoodsStore() {
		super();
	}

	public GoodsStore(String id){
		super(id);
	}


	public String getFirstImg() {
		return firstImg;
	}

	public void setFirstImg(String firstImg) {
		this.firstImg = firstImg;
	}


	@ExcelField(title="商品名称", align=2, sort=1)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="轮播图", align=2, sort=2)
	public String getMainImgs() {
		return mainImgs;
	}

	public void setMainImgs(String mainImgs) {
		this.mainImgs = mainImgs;
	}
	
//	@ExcelField(title="单价", align=2, sort=3)
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@ExcelField(title="大图", align=2, sort=4)
	public String getImgs() {
		return imgs;
	}

	public void setImgs(String imgs) {
		this.imgs = imgs;
	}
	
	@ExcelField(title="商品状态", dictType="goods_store_status", align=2, sort=5)
	public String getGoodsStatus() {
		return goodsStatus;
	}

	public void setGoodsStatus(String goodsStatus) {
		this.goodsStatus = goodsStatus;
	}
	
//	@ExcelField(title="一级返利", align=2, sort=6)
	public Double getFirstProfit() {
		return firstProfit;
	}

	public void setFirstProfit(Double firstProfit) {
		this.firstProfit = firstProfit;
	}
	
//	@ExcelField(title="二级返利", align=2, sort=7)
	public Double getSecondProfit() {
		return secondProfit;
	}

	public void setSecondProfit(Double secondProfit) {
		this.secondProfit = secondProfit;
	}
	
	@ExcelField(title="分区", fieldType=Zone.class, value="zone.name", align=2, sort=8)
	public Zone getZone() {
		return zone;
	}

	public void setZone(Zone zone) {
		this.zone = zone;
	}

	@ExcelField(title="所需积分", align=2, sort=9)
	public Double getIntegral() {
		return integral;
	}

	public void setIntegral(Double integral) {
		this.integral = integral;
	}

	public Double getOriginalPrice() {
		return originalPrice;
	}

	public void setOriginalPrice(Double originalPrice) {
		this.originalPrice = originalPrice;
	}

	public Integer getBoughtPerson() {
		return boughtPerson;
	}

	public void setBoughtPerson(Integer boughtPerson) {
		this.boughtPerson = boughtPerson;
	}

	public String getGoodsPosition() {
		return goodsPosition;
	}

	public void setGoodsPosition(String goodsPosition) {
		this.goodsPosition = goodsPosition;
	}

	@ExcelField(title="库存", align=2, sort=9)
	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Double getProfit() {
		return profit;
	}

	public void setProfit(Double profit) {
		this.profit = profit;
	}

	public Integer getMyStock() {
		return myStock;
	}

	public void setMyStock(Integer myStock) {
		this.myStock = myStock;
	}

	public String getShowPrice() {
		return showPrice;
	}

	public void setShowPrice(String showPrice) {
		this.showPrice = showPrice;
	}
}